//
//  NetSyncViewController.h
//  iMoney
//
//  Created by Sean McGrail on 1/29/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <Foundation/NSNetServices.h>
#import "NetHandler.h"
#import "OverlayView.h"

@interface NetSyncViewController : UIViewController<NetHandlerDelegate, UIActionSheetDelegate, UITableViewDataSource, UITableViewDelegate> {

	UIActionSheet *actionSheet;
	UITableView* serviceTable;

	UIButton* syncButton;
	
	NSMutableArray *services;
	NSNetServiceBrowser *netServiceBrowser;
	
	NetHandler* net;
	
	OverlayView* overlay;
	
	BOOL browsing;

}


@property (nonatomic, retain, readwrite) NSNetServiceBrowser* netServiceBrowser;
@property (nonatomic, retain, readwrite) NSMutableArray *services;

@property (nonatomic, retain) NetHandler* net;

-(id)init;

-(BOOL)searchForServicesOfType:(NSString *)type inDomain:(NSString *)domain;
-(IBAction) syncPressed: (id)sender;

@end
